package com.example.votemanage.mapper;

import com.example.votemanage.entity.VoteItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.votemanage.entity.VoteOption;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liufangzhou
 * @since 2024-06-06
 */
public interface VoteItemMapper extends BaseMapper<VoteItem> {
    @Select("SELECT * FROM  VOTE_ITEM WHERE vs_id=#{vsid}")
    public List<VoteItem> findItemByVsId(int vsid);

    @Select("SELECT * FROM  VOTE_ITEM WHERE vo_id=#{vo_id}")
    public List<VoteItem> findItemByVoId(int vo_id);
}
